package com.gopay.common.domain.bis;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.gopay.common.domain.BaseEntity;

/**
 * 银行交互服务-银行接口通道信息表
 * 
 * @BisBankInterfaceChannel.java
 * @author yaobo
 * @2013-11-6 上午09:48:16 www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "BIS_BANK_INTERFACE_CHANNEL")
public class BisBankInterfaceChannel extends BaseEntity {

    /**
     * 
     */
    private static final long serialVersionUID = -903871370166651262L;

    /**
     * 接口通道代码
     * 
     * 00 - 直连银行 01 - 联动优势 02 - 联通沃 03 - 深圳快付通 04 - 民生银联
     */
    @Id
    @Column(name = "INTRFACE_CHANNEL_CODE")
    private String channelCode;

    /**
     * 接口通道名称
     */
    @Column(name = "INTRFACE_CHANNEL_NAME")
    private String channelName;

    /**
     * 创建时间
     */
    @Column(name = "CREATED_TS")
    private Date created;

    /**
     * 记录最后修改时间
     */
    @Column(name = "LAST_UPD_TS")
    private Date modified;

    /**
     * 删除标识
     * 
     * 0 - 未删除 1 - 已删除
     */
    @Column(name = "IS_DEL", nullable = false, precision = 1, scale = 0)
    private boolean del;

    /**
     * 是否可用
     * 
     * 1 - 可用 2 - 不可用
     */
    @Column(name = "ENABLE", nullable = false, precision = 2, scale = 1)
    private boolean enable;

    /**
     * 最后修改交易码
     */
    @Column(name = "LAST_UPD_TRANCODE")
    private String lastUpdTranCode;

	public String getChannelCode() {
		return channelCode;
	}

	public void setChannelCode(String channelCode) {
		this.channelCode = channelCode;
	}

	public String getChannelName() {
		return channelName;
	}

	public void setChannelName(String channelName) {
		this.channelName = channelName;
	}

	public Date getCreated() {
		return created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public Date getModified() {
		return modified;
	}

	public void setModified(Date modified) {
		this.modified = modified;
	}

	public boolean isDel() {
		return del;
	}

	public void setDel(boolean del) {
		this.del = del;
	}

	public boolean isEnable() {
		return enable;
	}

	public void setEnable(boolean enable) {
		this.enable = enable;
	}

	public String getLastUpdTranCode() {
		return lastUpdTranCode;
	}

	public void setLastUpdTranCode(String lastUpdTranCode) {
		this.lastUpdTranCode = lastUpdTranCode;
	}
}
